package JLB_Chapter_05;
// StringReplace
public class code_05_16 {
    public static void main(String[] args) {
        String str = "明月几时有，把酒问青天。";
        String restr = str.replace("月","日");
        System.out.println(restr);
        String str1 = "Hello";
        String str2 = "World";
        String str3 = str2 + str1;
        String str4 = "Hello" + str2;
        String str5 = "HelloWorld";
        String str6 = "Hello" + "World";
        System.out.println(str3 + " " + str4 + " " + str5 + " " + str6);
        System.out.println(str3 == str4);
        System.out.println(str3 == str5);
        System.out.println(str4 == str5);
        System.out.println(str4 == str6);
        System.out.println(str5 == str6);
    }
}
